using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace Belmost4PDA.Logic
{
    class HintMenu: ContextMenu
    {
        private Control Ctrl;
        private HintView Hint;
        public HintMenu(Control Parent, HintView ParentHint)
        {
            Ctrl = Parent;
            Hint = ParentHint;
        }

        protected override void OnPopup(EventArgs e)
        {
           Hint.SetLocation(Ctrl.Location.Y);
           Hint.SetHint(Ctrl.Text);
        }
    }
}
